  <!-- Site Showcase -->
  <div class="site-showcase">
    <!-- Start Page Header -->
    <div class="parallax page-header" style="background-image:url(http://placehold.it/1200x260&amp;text=IMAGE+PLACEHOLDER);">
          <div class="container">
              <div class="row">
                  <div class="col-md-12">
                      <h1><?php   
					  if($user_role=='agent')
					  $agent_type	=	'Agents';
					  else
					  $agent_type	=	'Brokers';
					  
					   echo Inflector::humanize($agent_type);
					  
					   ?></h1>
                  </div>
             </div>
         </div>
    </div>
    <!-- End Page Header -->
  </div>
  <!-- Start Content -->
  <div class="main" role="main">
      <div id="content" class="content full">
          <div class="container">
              <div class="row">
                  <div class="col-md-9">
                      <div class="block-heading">
                          <a href="<?php echo $this->Html->url(array('controller'=>'users','action'=>'register')); ?>" class="btn btn-sm btn-primary pull-right"><?php echo __('Become an agent'); ?> <i class="fa fa-long-arrow-right"></i></a>
                          <h4><span class="heading-icon"><i class="fa fa-users"></i></span><?php echo __('All '.$agent_type); ?></h4>
                      </div>
                    <div class="agents-listing">
                        <ul><?php foreach ($users as $user): ?>
                          <li class="col-md-12">
                              <div class="col-md-4">
							  <?php 
							  if($user['User']['image'])
							  $image	=	'/files/user/thumb/'.$user['User']['image'];
							  else
							  $image	=	'http://placehold.it/600x360&text=IMAGE+PLACEHOLDER';
							  
							  
							   ?>
                                      <a href="<?php echo $this->Html->url(array('controller'=>'users','action'=>'agent_detail',$user['User']['id'],Inflector::slug(strtolower($user['User']['first_name'].' '.$user['User']['last_name']),'-'))) ?>" class="agent-featured-image">
                                       <img  src="<?php echo $this->Html->url($image); ?>" alt=""></a>
                              </div>
                              <div class="col-md-8">
                                      <div class="agent-info">
                                      <div class="counts"><strong>18</strong><span><?php echo __('Properties'); ?></span></div>
                                      <h3><?php echo $this->Html->link(h($user['User']['first_name'].' '.$user['User']['last_name']),array('controller'=>'users','action'=>'agent_detail',$user['User']['id'],Inflector::slug(strtolower($user['User']['first_name'].' '.$user['User']['last_name']),'-'))) ?></h3>
                                      <p><?php //echo $user['User']['description']; 
									  echo h($this->Text->truncate($user['User']['description'],220));
									   ?>.</p>
                                  </div>
                                  <div class="agent-contacts clearfix">
                                          <ul>
                              <li><a target="_blank" href="<?php echo $this->Html->fix_url($user['User']['facebook']); ?>"><i class="fa fa-facebook"></i></a></li>
                              <li><a  target="_blank" href="<?php echo $this->Html->fix_url($user['User']['twitter']); ?>"><i class="fa fa-twitter"></i></a></li>
                              <li><a  target="_blank" href="<?php echo $this->Html->fix_url($user['User']['google_plus']); ?>"><i class="fa fa-google-plus"></i></a></li>
                              <!--<li><a href="#"><i class="fa fa-envelope"></i></a></li>-->
                              <li><a target="_blank"  href="<?php echo $this->Html->fix_url($user['User']['linkedin']); ?>"><i class="fa fa-linkedin"></i></a></li>
                                      </ul>
                                  </div>
                                  </div>
                              </li>
                              <?php endforeach; ?>
                        </ul>
                    </div>
					<?php echo $this->element('paginate'); ?>
                  </div>
			<?php echo $this->element('side-bar-more-agents', array(), array('cache' => array('config' => 'cache'))); ?>

              </div>
          </div>
      </div>
  </div>
